package pojo;

public class Teacher {
    private Integer tno;
    private String tname;
    private String sex;
    private Long tel;
    private Integer gno;

    public Teacher() {
    }


    public Teacher(Integer tno, String tname, String sex, Long tel, Integer gno) {
        this.tno = tno;
        this.tname = tname;
        this.sex = sex;
        this.tel = tel;
        this.gno = gno;
    }

    public Integer getTno() {
        return tno;
    }

    public void setTno(Integer tno) {
        this.tno = tno;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Long getTel() {
        return tel;
    }

    public void setTel(Long tel) {
        this.tel = tel;
    }

    public Integer getGno() {
        return gno;
    }

    public void setGno(Integer gno) {
        this.gno = gno;
    }
    @Override
    public String toString() {
        return "Teacher{" +
                "tno=" + tno +
                ", tname='" + tname + '\'' +
                ", sex='" + sex + '\'' +
                ", tel=" + tel +
                ", gno=" + gno +
                '}';
    }

}
